version ds.w 1 ; offset: $0 (0) ; this is always zero, for now
uniqueColors ds.l 1 ; offset: $2 (2) ; the number of actual colors in the picture(s)/pixmap(s)
thePalette ds.l 1 ; offset: $6 (6) ; handle to the palette information
theColorTable ds.l 1 ; offset: $A (10) ; handle to the color table
hRes ds.l 1 ; offset: $E (14) ; maximum horizontal resolution for all the pixmaps
vRes ds.l 1 ; offset: $12 (18) ; maximum vertical resolution for all the pixmaps
depth ds.w 1 ; offset: $16 (22) ; maximum depth for all the pixmaps (in the picture)
sourceRect ds Rect ; offset: $18 (24) ; the picture frame rectangle (this contains the entire picture)
textCount ds.l 1 ; offset: $20 (32) ; total number of text strings in the picture
lineCount ds.l 1 ; offset: $24 (36) ; total number of lines in the picture
rectCount ds.l 1 ; offset: $28 (40) ; total number of rectangles in the picture
rRectCount ds.l 1 ; offset: $2C (44) ; total number of round rectangles in the picture
ovalCount ds.l 1 ; offset: $30 (48) ; total number of ovals in the picture
arcCount ds.l 1 ; offset: $34 (52) ; total number of arcs in the picture
polyCount ds.l 1 ; offset: $38 (56) ; total number of polygons in the picture
regionCount ds.l 1 ; offset: $3C (60) ; total number of regions in the picture
bitMapCount ds.l 1 ; offset: $40 (64) ; total number of bitmaps in the picture
pixMapCount ds.l 1 ; offset: $44 (68) ; total number of pixmaps in the picture
commentCount ds.l 1 ; offset: $48 (72) ; total number of comments in the picture
uniqueComments ds.l 1 ; offset: $4C (76) ; the number of unique comments in the picture
commentHandle ds.l 1 ; offset: $50 (80) ; handle to all the comment information
uniqueFonts ds.l 1 ; offset: $54 (84) ; the number of unique fonts in the picture
fontHandle ds.l 1 ; offset: $58 (88) ; handle to the FontSpec information
fontNamesHandle ds.l 1 ; offset: $5C (92) ; handle to the font names
reserved1 ds.l 1 ; offset: $60 (96)
reserved2 ds.l 1 ; offset: $64 (100)
sizeof EQU * ; size: $68 (104)
ENDR
; typedef struct PictInfo PictInfo
; typedef PictInfo *PictInfoPtr, **PictInfoHandle
;
; pascal OSErr GetPictInfo(PicHandle thePictHandle, PictInfo *thePictInfo, short verb, short colorsRequested, short colorPickMethod, short version)
;
IF ¬ GENERATINGCFM THEN
Macro
_GetPictInfo
move.w #$0800,d0
dc.w $A831
EndM
ELSE
IMPORT_CFM_FUNCTION GetPictInfo
ENDIF
;
; pascal OSErr GetPixMapInfo(PixMapHandle thePixMapHandle, PictInfo *thePictInfo, short verb, short colorsRequested, short colorPickMethod, short version)
;
IF ¬ GENERATINGCFM THEN
Macro
_GetPixMapInfo
move.w #$0801,d0
dc.w $A831
EndM
ELSE
IMPORT_CFM_FUNCTION GetPixMapInfo
ENDIF
;
; pascal OSErr NewPictInfo(PictInfoID *thePictInfoID, short verb, short colorsRequested, short colorPickMethod, short version)